package com.cms.sync.model;

import java.io.Serializable;
import java.util.Date;

import com.util.Util;

public class KpaySyncLog implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5755648560504223884L;

	private int id;
	private int day=-1;
	private int hour=-1;
	private int minute=-1;
	private String appversionnumber="";
	private int cpid=-1;
	private int channelid=-1;
	private int goodsid=-1;
	private String eventid="";
	private String imsi="";
	private String imei="";
	private String sessionid="";
	private String simsn="";
	private String mobile="";
	private String operator="";
	private String operatorname="";
	private String mac="";
	private String nettype="";
	private String appid="";
	private String chid="";
	private String packages="";
	private String versioncode="";
	private String versionname="";
	private String androidid="";
	private String model="";
	private String sdkint="";
	private String sdk="";
	private String manufacturer="";
	private String brand="";
	private String board="";
	private String product="";
	private String device="";
	private String event="";
	private String action="";
	private String orderid="";
	private String ordercode="";
	private String ordername="";
	private float orderamount=0f;
	private String orderdesc="";
	private String provider="";
	private String resultcode="";
	private String resultmsg="";
	private String eventtime="";
	private String activity="";
	private String createdate="";
	private String destorydate="";
	private long lifetime=0;
	private String remark="";
	private int errnum=0;
	private String createtime;
	
	public KpaySyncLog(){
		this.createtime=Util.dateToString(new Date(), "yyyy-MM-dd HH:mm:ss");
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getEventid() {
		return eventid;
	}

	public void setEventid(String eventid) {
		this.eventid = eventid;
	}

	public String getImsi() {
		return imsi;
	}

	public void setImsi(String imsi) {
		this.imsi = imsi;
	}

	public String getAppversionnumber() {
		return appversionnumber;
	}

	public void setAppversionnumber(String appversionnumber) {
		this.appversionnumber = appversionnumber;
	}

	public String getChid() {
		return chid;
	}

	public void setChid(String chid) {
		this.chid = chid;
	}

	public String getPackages() {
		return packages;
	}

	public void setPackages(String packages) {
		this.packages = packages;
	}

	public String getVersioncode() {
		return versioncode;
	}

	public void setVersioncode(String versioncode) {
		this.versioncode = versioncode;
	}

	public String getVersionname() {
		return versionname;
	}

	public void setVersionname(String versionname) {
		this.versionname = versionname;
	}

	public String getEvent() {
		return event;
	}

	public void setEvent(String event) {
		this.event = event;
	}

	public String getAction() {
		if(action==null||action.equalsIgnoreCase("null"))
			return "";
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	public String getOrderid() {
		return orderid;
	}

	public void setOrderid(String orderid) {
		this.orderid = orderid;
	}

	public String getOrdercode() {
		return ordercode;
	}

	public void setOrdercode(String ordercode) {
		this.ordercode = ordercode;
	}

	public String getOrdername() {
		return ordername;
	}

	public void setOrdername(String ordername) {
		this.ordername = ordername;
	}

	public float getOrderamount() {
		return orderamount;
	}

	public void setOrderamount(float orderamount) {
		this.orderamount = orderamount;
	}

	public String getOrderdesc() {
		return orderdesc;
	}

	public void setOrderdesc(String orderdesc) {
		this.orderdesc = orderdesc;
	}

	public String getProvider() {
		return provider;
	}

	public void setProvider(String provider) {
		this.provider = provider;
	}

	public String getResultcode() {
		return resultcode;
	}

	public void setResultcode(String resultcode) {
		this.resultcode = resultcode;
	}

	public String getResultmsg() {
		return resultmsg;
	}

	public void setResultmsg(String resultmsg) {
		this.resultmsg = resultmsg;
	}

	public String getEventtime() {
		return eventtime;
	}

	public void setEventtime(String eventtime) {
		this.eventtime = eventtime;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getCreatetime() {
		return createtime;
	}

	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}

	public int getDay() {
		return day;
	}

	public void setDay(int day) {
		this.day = day;
	}

	public int getHour() {
		return hour;
	}

	public void setHour(int hour) {
		this.hour = hour;
	}

	public int getMinute() {
		return minute;
	}

	public void setMinute(int minute) {
		this.minute = minute;
	}

	public int getCpid() {
		return cpid;
	}

	public void setCpid(int cpid) {
		this.cpid = cpid;
	}

	public int getChannelid() {
		return channelid;
	}

	public void setChannelid(int channelid) {
		this.channelid = channelid;
	}

	public int getGoodsid() {
		return goodsid;
	}

	public void setGoodsid(int goodsid) {
		this.goodsid = goodsid;
	}

	public String getAppid() {
		return appid;
	}

	public void setAppid(String appid) {
		this.appid = appid;
	}

	public int getErrnum() {
		return errnum;
	}

	public void setErrnum(int errnum) {
		this.errnum = errnum;
	}

	public String getImei() {
		if(imei==null||imei.equals("null"))
			return "";
		return imei;
	}

	public void setImei(String imei) {
		this.imei = imei;
	}

	public String getCreatedate() {
		return createdate;
	}

	public void setCreatedate(String createdate) {
		this.createdate = createdate;
	}


	public String getDestorydate() {
		return destorydate;
	}

	public void setDestorydate(String destorydate) {
		this.destorydate = destorydate;
	}

	public long getLifetime() {
		return lifetime;
	}

	public void setLifetime(long lifetime) {
		this.lifetime = lifetime;
	}

	public String getActivity() {
		return activity;
	}

	public void setActivity(String activity) {
		this.activity = activity;
	}

	public String getSessionid() {
		return chkStr(sessionid);
	}

	public void setSessionid(String sessionid) {
		this.sessionid = sessionid;
	}

	public String getAndroidid() {
		return androidid;
	}

	public void setAndroidid(String androidid) {
		this.androidid = androidid;
	}

	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public String getSdkint() {
		return sdkint;
	}

	public void setSdkint(String sdkint) {
		this.sdkint = sdkint;
	}

	public String getSdk() {
		return sdk;
	}

	public void setSdk(String sdk) {
		this.sdk = sdk;
	}

	public String getManufacturer() {
		return manufacturer;
	}

	public void setManufacturer(String manufacturer) {
		this.manufacturer = manufacturer;
	}

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public String getBoard() {
		return board;
	}

	public void setBoard(String board) {
		this.board = board;
	}

	public String getProduct() {
		return product;
	}

	public void setProduct(String product) {
		this.product = product;
	}

	public String getDevice() {
		return device;
	}

	public void setDevice(String device) {
		this.device = device;
	}
	
	public String getSimsn() {
		return simsn;
	}

	public void setSimsn(String simsn) {
		this.simsn = simsn;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public String getOperatorname() {
		return operatorname;
	}

	public void setOperatorname(String operatorname) {
		this.operatorname = operatorname;
	}

	public String getMac() {
		return mac;
	}

	public void setMac(String mac) {
		this.mac = mac;
	}

	public String getNettype() {
		return nettype;
	}

	public void setNettype(String nettype) {
		this.nettype = nettype;
	}

	public String chkStr(String s){
		if(s==null||s.equalsIgnoreCase("null")||s.trim().length()<=0)
			return "";
		return s;
	}
}
